package com.tianpengtech.admin.permission;


import com.tianpengtech.common.model.permission.Permission;

import java.util.List;

public class PermissionDao {

    public static PermissionDao ME = new PermissionDao();

    /*
        根据role查找对应的操作权限
     */
    public List<Permission> queryPermissionByRole(String roleName){
        String sql="select * from "+Permission.dao.tableName()+" where "+Permission.ROLE_ID+"=? ";
        return Permission.dao.find(sql, roleName);
    }
}
